import { Component } from '@angular/core';
import { NavController, NavParams } from 'ionic-angular';
import { LoginPage }  from '../login/login';
import { SettingPage }  from '../setting/setting';


@Component({
  	selector: 'page-me',
  	templateUrl: 'me.html',
})
export class MePage {

	itemPage = ['WalletPage','BillPage','BillPage','BillPage',SettingPage]

  	constructor(public navCtrl: NavController, public navParams: NavParams) {
  	}

  	itemSelected(type){
  		this.navCtrl.push(this.itemPage[type])
  	}

    login(){
        this.navCtrl.push(LoginPage)
    }

  	ionViewDidLoad() {
    	console.log('ionViewDidLoad MePage');
  	}
  	
  	setting(){
  		console.log('setting page');
  		this.navCtrl.push(SettingPage);
  	}

}
